package com.lagou.entity;

/**
 * @Author wsl
 * @Date 2021/8/25 20:39
 * @Project_Name mysql
 */
public class OrderItem {

    private String itemid;  //订单项ID
    private String pid;     //外键 对应商品表 id
    private String oid;     //外键 对应订单表 id
    private Product product; //保存商品表中的详细信息
    private Orders orders;   //保存订单表中的详细信息

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "itemid='" + itemid + '\'' +
                ", pid='" + pid + '\'' +
                ", oid='" + oid + '\'' +
                '}';
    }
}
